<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
		<link rel="stylesheet" href="../css/font-awesome/css/font-awesome.css">
	</head>

	<body ng-app="app" >
		<div ng-controller="ctrl" >
			<input type="text" ng-model="item.name" >
		</div>
		<script>
			var app=angular.module("app",[]);
			app.controller("ctrl",["$scope",function($scope){
			    $scope.item={name:''};
				$scope.$watch("item",function (n, o) {
					console.log(n)
                },true);
			}]);
		</script>
	</body>
</html>
